package com.edu.dao;

import com.edu.pojo.users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface usersMapper {
    //增加用户
    int adduser(users users);

    //删除用户
    int deleteusersById(@Param("userid") String id);

    //修改用户
    int updateuser(users users);

    //查找一个用户
    users queryuserById(@Param("userid")  String id);

    //查找全部用户
    List<users> queryAlluser();

    users login(@Param("accounts") String accounts,@Param("password") String password);

    users getPassword(@Param("accounts")String accounts);

    int modifyPassword(@Param("accounts") String accounts,@Param("password") String password);
}
